package com.yisu.expressway.api.domain.request;

/**
 * 分页基类
 * Created by zj on 2017/3/8.
 */
public class BasePage {
    //页码
    private int pageindex;
    //每页大小
    private int pagesize;

    private int startNum;

    private int endNum;

    public int getPageindex() {
        return pageindex;
    }

    public void setPageindex(int pageindex) {
        this.pageindex = pageindex;
    }

    public int getPagesize() {
        return pagesize;
    }

    public void setPagesize(int pagesize) {
        this.pagesize = pagesize;
    }

    public int getStartNum() {
        return startNum = (pageindex - 1) * pagesize;
    }


    public int getEndNum() {
        return endNum = pagesize;
    }

}
